#include <iostream>
#include <memory>

#include "EpollServer.hpp"

int main(int argc, char* args[])
{
    if(argc != 2)
    {
        std::cout<<"./server port"<<std::endl;
        exit(0);
    }
    uint16_t port = std::stoi(args[1]);

    std::unique_ptr<EpollServer> esr = std::make_unique<EpollServer>(port);
    esr->Init();
    esr->Loop();

    return 0;
}